import 'package:flutter/material.dart';
import 'package:modal_bottom_sheet/modal_bottom_sheet.dart';
import 'package:moose_app/ui/values/values.dart';
import 'package:moose_app/ui/widgets/icons/search_icon.dart';

class ATHCommonMoreSheet extends StatelessWidget {
  final Widget child;

  const ATHCommonMoreSheet({Key key, this.child}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Material(
        child: SafeArea(
      top: false,
      child: Container(
        margin: kCommonMarin,
        height: kSize800,
        child: Column(
          children: [
            Container(
              child: Row(
                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                children: [CloseButton(), ATHSearchIcon()],
              ),
            ),
            Expanded(
              child: SingleChildScrollView(
                controller: ModalScrollController.of(context),
                child: ListView.builder(
                    shrinkWrap: true,
                    controller: ModalScrollController.of(context),
                    itemCount: 10,
                    itemBuilder: (c, i) {
                      return ListTile(
                        title: Text("更多更多更多更多更多更多"),
                      );
                    }),
              ),
            ),
          ],
        ),
      ),
    ));
  }
}
